Replace gdk_surface_is_visible by _get_mapped
authorMatthias Clasen <mclasen@redhat.com>
Tue, 25 Feb 2020 00:02:34 +0000 (19:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 25 Feb 2020 00:07:03 +0000 (19:07 -0500)
The property  is called ::mapped, and we want to get
to standard getter naming.

gdk/gdkseatdefault.c
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdksurface-wayland.c
gdk/x11/gdkdrag-x11.c
gtk/gtkpopover.c

index 5b1a8425e8f5ca8ddb57274d977d4774b118c378..26bf5ae967de22f1dfe41ac2687de13b78ca863a 100644 (file)
@@ -119,14 +119,14 @@ gdk_seat_default_grab (GdkSeat                *seat,
   gboolean was_visible;
 
   priv = gdk_seat_default_get_instance_private (GDK_SEAT_DEFAULT (seat));
-  was_visible = gdk_surface_is_visible (surface);
+  was_visible = gdk_surface_get_mapped (surface);
 
   if (prepare_func)
     (prepare_func) (seat, surface, prepare_func_data);
 
-  if (!gdk_surface_is_visible (surface))
+  if (!gdk_surface_get_mapped (surface))
     {
-      g_critical ("Surface %p has not been made visible in GdkSeatGrabPrepareFunc",
+      g_critical ("Surface %p has not been mapped in GdkSeatGrabPrepareFunc",
                   surface);
       return GDK_GRAB_NOT_VIEWABLE;
     }
index c18b0e1eaf3d77086b3b5ce86f2d7f29a3cab162..09fa321d162a814f9d343c0be9380b9a3805d358 100644 (file)
@@ -750,7 +750,7 @@ gdk_wayland_device_grab (GdkDevice    *device,
   GdkWaylandPointerData *pointer = GDK_WAYLAND_DEVICE (device)->pointer;
 
   if (gdk_surface_get_surface_type (surface) == GDK_SURFACE_TEMP &&
-      gdk_surface_is_visible (surface))
+      gdk_surface_get_mapped (surface))
     {
       g_warning ("Surface %p is already mapped at the time of grabbing. "
                  "gdk_seat_grab() should be used to simultanously grab input "
@@ -4502,7 +4502,7 @@ gdk_wayland_seat_grab (GdkSeat                *seat,
   if (prepare_func)
     (prepare_func) (seat, surface, prepare_func_data);
 
-  if (!gdk_surface_is_visible (surface))
+  if (!gdk_surface_get_mapped (surface))
     {
       gdk_wayland_seat_set_grab_surface (wayland_seat, NULL);
       return GDK_GRAB_NOT_VIEWABLE;
index 6b59f43c9e50c5bc190ff2ea76e0dd3c1bd64819..e50c39991a9cffe11c270cbeae8a5a5e19ce5bca 100644 (file)
@@ -864,7 +864,7 @@ gdk_wayland_surface_maybe_resize (GdkSurface *surface,
    */
 
   is_xdg_popup = is_realized_popup (surface);
-  is_visible = gdk_surface_is_visible (surface);
+  is_visible = gdk_surface_get_mapped (surface);
 
   if (is_xdg_popup && is_visible && !impl->initial_configure_received)
     gdk_wayland_surface_hide (surface);
index b946cb255f78019e91aa5a1dd5392c62503f4501..c4fed39c8465a14c927b4e1c3c2eaff239e99ab3 100644 (file)
@@ -543,7 +543,7 @@ gdk_surface_cache_new (GdkDisplay *display)
                                 x * impl->surface_scale, y * impl->surface_scale, 
                                width * impl->surface_scale, 
                                height * impl->surface_scale,
-                                gdk_surface_is_visible (surface));
+                                gdk_surface_get_mapped (surface));
         }
       return result;
     }
index 286388bb2d8d9a6503dbd588cdb3809b509eb7f4..d36159cde119109fafc81e410c39cdd54afe7b00 100644 (file)
@@ -826,7 +826,7 @@ surface_transform_changed_cb (GtkWidget               *widget,
   GtkPopover *popover = user_data;
   GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
 
-  if (priv->surface && gdk_surface_is_visible (priv->surface))
+  if (priv->surface && gdk_surface_get_mapped (priv->surface))
     present_popup (popover);
 
   return G_SOURCE_CONTINUE;
@@ -1567,7 +1567,7 @@ relative_to_size_changed (GtkWidget  *widget,
 {
   GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
 
-  if (priv->surface && gdk_surface_is_visible (priv->surface))
+  if (priv->surface && gdk_surface_get_mapped (priv->surface))
     present_popup (popover);
 }